static void TEST_PWR_DISK_GetList(void)
{
    int ret;
    uint32_t len = MAX_DISK_LIST_LEN;
    char diskList[MAX_DISK_LIST_LEN][MAX_ELEMENT_NAME_LEN];//创建参数
    ret = PWR_DISK_GetList(diskList, &len);//获取信息
    printf("PWR_DISK_GetList ret: %d\n len:%d\n",ret,len);//打印信息
    for (int i = 0; i < len; i++)
    {
        puts(diskList[i]);
    }
}

static void TEST_PWR_DISK_GetLoad(void)
{
    int ret;
    int spec = 0;
    uint32_t len = sizeof(PWR_DISK_Load);
    PWR_DISK_Load *load = (PWR_DISK_Load *)malloc(sizeof(PWR_DISK_Load));//创建参数
    if (!load) {
        return;
    }
    bzero(load, sizeof(load));//初始化
    ret = PWR_DISK_GetLoad( load, &len, spec);//获取信息
    printf("PWR_DISK_GetLoad ret: %d\n len:%d\n spec: %d\n diskId: %s\n rload: %d\n wload: %d\n",
            ret, len, spec, load->diskId, load->rLoad, load->wLoad);//打印信息
    free(load);//释放内存
}

static void TEST_PWR_DISK_GetPwrLevel(void)
{
    int ret;
    int spec = 0;
    uint32_t len = sizeof(PWR_DISK_PwrLevel); 
    PWR_DISK_PwrLevel *pwrLevel = (PWR_DISK_PwrLevel *)malloc(sizeof(PWR_DISK_PwrLevel));//创建参数
    if (!pwrLevel) {
        return;
    }
    bzero(pwrLevel, sizeof(pwrLevel));//初始化
    ret = PWR_DISK_GetPwrLevel(pwrLevel, &len, spec);//获取信息
    printf("PWR_DISK_GetPwrLevel ret: %d\n len:%d\n spec: %d\n diskId: %s\n powerLevel: %d\n spindownLevel: %d\n",
            ret, len, spec, pwrLevel->diskId, pwrLevel->powerLevel, pwrLevel->spindownLevel);//打印信息
    free(pwrLevel);//释放内存
}

static void TEST_PWR_DISK_SetPwrLevel(void)
{
    int ret;
    uint32_t len = sizeof(PWR_DISK_PwrLevel); 
    PWR_DISK_PwrLevel *pwrLevel = (PWR_DISK_PwrLevel *)malloc(sizeof(PWR_DISK_PwrLevel));//创建参数
    if (!pwrLevel) {
        return;
    }
    bzero(pwrLevel, sizeof(pwrLevel));//初始化
    ret = PWR_DISK_SetPwrLevel(pwrLevel, len);//获取信息
    if (ret != SUCCESS)
    {
        printf("SetDiskPwrLevel failed. ret:%d\n", ret);
    }
    else
    {
        printf("SetDiskPwrLevel Succeed.\n");
    }
    
    free(pwrLevel);//释放内存
}

static void TEST_PWR_DISK_GetScsiPolicy(void)
{
    int ret;
    int spec = 0;
    uint32_t len = sizeof(PWR_DISK_ScsiPolicy);
    PWR_DISK_ScsiPolicy *scsiPolicy = (PWR_DISK_ScsiPolicy *)malloc(sizeof(PWR_DISK_ScsiPolicy));//创建参数
    if (!scsiPolicy) {
        return;
    }
    bzero(scsiPolicy, sizeof(scsiPolicy));//初始化
    ret = PWR_DISK_GetScsiPolicy(scsiPolicy, &len, spec);//获取信息
    printf("PWR_DISK_GetScsiPolicy ret: %d\n len:%d\n spec: %d\n scsiId: %s\n alpm: %d\n",
            ret, len, spec, scsiPolicy->scsiId, scsiPolicy->alpm);//打印信息
    free(scsiPolicy);//释放内存
}

static void TEST_PWR_DISK_SetScsiPolicy(void)
{
    int ret;
    uint32_t len = sizeof(PWR_DISK_ScsiPolicy);
    PWR_DISK_ScsiPolicy *scsiPolicy = (PWR_DISK_ScsiPolicy *)malloc(sizeof(PWR_DISK_ScsiPolicy));//创建参数
    if (!scsiPolicy) {
        return;
    }
    bzero(scsiPolicy, sizeof(scsiPolicy));//初始化
    ret = PWR_DISK_SetScsiPolicy(scsiPolicy, len);//获取信息
    if (ret != SUCCESS) {
        printf("SetDiskScsiPolicy failed. ret:%d\n", ret);
    } else {
        printf("SetDiskScsiPolicy Succeed.\n");
    }
    free(scsiPolicy);//释放内存
}